package com.xian.im.modules.im.controller.model.login;

import com.xian.im.common.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @program: xian-im-server
 * @description:
 * @author: liru.xian
 * @create: 2021-01-28 14:24
 **/
@Data
@ApiModel(
        value = "xim 即时通讯事件回调消息体"
)
public class SignReq implements Serializable {
    @ApiModelProperty(value = "appKey")
    @NotBlank(groups = AddGroup.class, message = "请填写 appKey")
    private String appKey;
    @ApiModelProperty(value = "account")
    @NotBlank(groups = AddGroup.class, message = "请填写 account")
    private String account;
    @ApiModelProperty(value = "channel")
    @NotBlank(groups = AddGroup.class, message = "请填写 channel")
    private  String channel;
    @ApiModelProperty(value = "version")
    @NotBlank(groups = AddGroup.class, message = "请填写 version")
    private String version;
    @ApiModelProperty(value = "deviceId")
    @NotBlank(groups = AddGroup.class, message = "请填写 deviceId")
    private String deviceId;
}
